#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#       untitled.py
#       
#       Copyright 2011 Aleksi Palomäki <aleksi@gami>
#       
#       This program is free software; you can redistribute it and/or modify
#       it under the terms of the GNU General Public License as published by
#       the Free Software Foundation; either version 2 of the License, or
#       (at your option) any later version.
#       
#       This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#       GNU General Public License for more details.
#       
#       You should have received a copy of the GNU General Public License
#       along with this program; if not, write to the Free Software
#       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#       MA 02110-1301, USA.
#       
#       

#ennusteet = ['19 ', '20 ', '16 ', '14 ', '13 ', '13 ', '16 ', '20 ', '19 ', '14 ', '18 ', '21 ', '15 ', '20 ', '14 ', '21 ', '17 ', '31 ']
#ajat = ['first-day odd-day', 'first-day odd-day', 'first-day odd-day', 'even-day', 'even-day', 'even-day', 'even-day', 'even-day', 'even-day', 'odd-day', 'odd-day', 'odd-day', 'even-day', 'even-day', 'odd-day', 'odd-day', 'last-day even-day', 'last-day even-day']

def forec(ennusteet, ajat):
	firstdays = 0
	secondday = 0
	today = []
	check = 1
	ennuste = []
	time = 21
	for x in ajat[:]:
		if x == "first-day odd-day":
			ennuste.append("Today: " + ennusteet[0] + "C") 
			firstdays = firstdays+1
			del ennusteet[0]
			del ajat[0]
	for x in ajat[:]:
		if x == "even-day" and check == 1:
			ennuste.append("Tomorrow: " + ennusteet[0] + "C") 
			secondday = secondday+1
			del ennusteet[0]
			del ajat[0]
		if x == "odd-day":
			break
	for i in range(firstdays):
		if firstdays < 2:
			ennuste[i] = "Today: " + ennusteet[0] + "C"
		 
	for x in ennuste[:]:
		print x 	
	print firstdays
					

	

